#!/bin/bash

# 定义要下载的镜像列表
images=(
    "gcr.io/google-samples/microservices-demo/emailservice:v0.9.0"
    "gcr.io/google-samples/microservices-demo/checkoutservice:v0.9.0"
    "gcr.io/google-samples/microservices-demo/recommendationservice:v0.9.0"
    "gcr.io/google-samples/microservices-demo/frontend:v0.9.0"
    "gcr.io/google-samples/microservices-demo/paymentservice:v0.9.0"
    "gcr.io/google-samples/microservices-demo/productcatalogservice:v0.9.0"
    "gcr.io/google-samples/microservices-demo/cartservice:v0.9.0"
    "busybox:latest"
    "gcr.io/google-samples/microservices-demo/loadgenerator:v0.9.0"
    "gcr.io/google-samples/microservices-demo/currencyservice:v0.9.0"
    "gcr.io/google-samples/microservices-demo/shippingservice:v0.9.0"
    "redis:alpine"
    "gcr.io/google-samples/microservices-demo/adservice:v0.9.0"
)

# 循环下载每个镜像
for image in "${images[@]}"; do
    docker pull "$image"
done

